package com.busibuilding.administrate.area.dao;

import java.util.List;

import com.busibuilding.administrate.area.vo.ProvinceCVO;
import com.busibuilding.common.config.sqlmap.entities.ProvinceVO;
import com.busibuilding.common.dao.CommonDaoImpl;
import com.busibuilding.common.exceptions.DAOException;
import com.busibuilding.common.vo.ICommonVO;
/**
 * Class Name: ProvinceDAOImpl.java
 * Description: 
 * @author Lin Yanjun
 * @version 1.0
 * @since 1.0
 * Date: 2010-2-25
 */
@SuppressWarnings("unchecked")
public class ProvinceDAOImpl extends CommonDaoImpl implements ProvinceDAO {

	@Override
	public int delete(ICommonVO vo) throws DAOException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(ICommonVO vo) throws DAOException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<ProvinceCVO> searchProvinceByCondition(ICommonVO vo)
			throws DAOException {
		return queryList(CMD_SQL_MAP_PROVINCE_SEARCH, vo);
	}

	@Override
	public int update(ICommonVO vo) throws DAOException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public ProvinceVO getProvince(ICommonVO vo) throws DAOException {
		return (ProvinceVO) queryObject(CMD_SQL_MAP_PROVINCE_GET,vo);
	}

	@Override
	public List<ProvinceCVO> searchProvinceByCondition(ICommonVO vo,
			int skipResults, int maxResults) throws DAOException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getRecordsCount(ICommonVO vo) throws DAOException {
		int result = SQLMAP_COMMON_RESULT_ERROR;
		result = (Integer)queryObject(CMD_SQL_MAP_PROVINCE_COUNT_RECORDS, vo);
		return result;
	}

}
